package com.patrol.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patrol.pojo.Fengxian;

public interface FengXianService
{
    /**
     * 增删改
     *
     * @return ：成功或失败信息
     */
    boolean insert(Fengxian fengxian);

    boolean delete(int id);

    boolean update(Fengxian fengxian);

    /**
     * 通过id查询全部信息
     *
     * @return ：Msg 里add(信息，Worker类)
     */
    Fengxian select(int id);

    Page<Fengxian> selectPage(long currentPage, long limit);

}
